#!/usr/bin/python
# s2a takes in a database schema name WITH_UNDERSCORES_ETC, and turns it into
# a variable name suitable for a java attribute.
#
# Copyright (C) 2002 Demian L. Neidetcher
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

import string
import sys

class s2a:

	def xferD2A(this, lineIn):
		lineIn = string.lower(lineIn)
		underscoreLoc = 0 
		while (underscoreLoc != -1):
			underscoreLoc = string.rfind(lineIn, '_')
			if (underscoreLoc != -1):
				lineIn = "%s%s%s" % \
					(lineIn[:underscoreLoc], \
					string.capitalize(lineIn[underscoreLoc+1]), \
					lineIn[underscoreLoc+2:])
		return "%s%s" % (string.upper(lineIn[0]),lineIn[1:])

if __name__=='__main__':

	lines = []
	for inLine in sys.stdin.readlines():
		lines.append(inLine)

	outputLines = []
	d = s2a()
	for line in lines:
		print d.xferD2A(line)
